home *** CD-ROM | disk | FTP | other *** search
/ Skunkware 5 / Skunkware 5.iso / src / Tools / lynx-2.4 / WWW / Library / Implementation / HTML.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-06-28  |  2.0 KB  |  85 lines

  1. /*                                                     HTML to rich text converter for libwww
  2.                              THE HTML TO RTF OBJECT CONVERTER
  3.                                              
  4.    This interprets the HTML semantics.
  5.    
  6.  */
  7. #ifndef HTML_H
  8. #define HTML_H
  9.  
  10. #ifndef HTUTILS_H
  11. #include "HTUtils.h"
  12. #endif /* HTUTILS_H */
  13. #include "HTAnchor.h"
  14. #include "HTMLDTD.h"
  15.  
  16. #ifdef SHORT_NAMES
  17. #define HTMLPresentation        HTMLPren
  18. #define HTMLPresent             HTMLPres
  19. #endif
  20.  
  21. extern CONST HTStructuredClass HTMLPresentation;
  22.  
  23. /*
  24.  
  25. HTConverter to present HTML
  26.  
  27.  */
  28. PUBLIC HTStream* HTMLToPlain PARAMS((
  29.         HTPresentation *        pres,
  30.         HTParentAnchor *        anchor,
  31.         HTStream *              sink));
  32.  
  33. PUBLIC HTStream* HTMLToC PARAMS((
  34.         HTPresentation *        pres,
  35.         HTParentAnchor *        anchor,
  36.         HTStream *              sink));
  37.  
  38. PUBLIC HTStream* HTMLPresent PARAMS((
  39.         HTPresentation *        pres,
  40.         HTParentAnchor *        anchor,
  41.         HTStream *              sink));
  42.  
  43. extern HTStructured* HTML_new PARAMS((
  44.         HTParentAnchor * anchor,
  45.         HTFormat        format_out,
  46.         HTStream *      target));
  47.  
  48. /*      Names for selected internal representations:
  49. */
  50. typedef enum _HTMLCharacterSet {
  51.         HTML_ISO_LATIN1,
  52.         HTML_NEXT_CHARS,
  53.         HTML_PC_CP950
  54. } HTMLCharacterSet;
  55.  
  56. extern void HTMLUseCharacterSet PARAMS((HTMLCharacterSet i));
  57.  
  58. /*
  59.  
  60. Record error message as a hypertext object
  61.  
  62.    The error message should be marked as an error so that it can be reloaded later. This
  63.    implementation just throws up an error message and leaves the document unloaded.
  64.    
  65.  */
  66. /* On entry,
  67. **      sink    is a stream to the output device if any
  68. **      number  is the HTTP error number
  69. **      message is the human readable message.
  70. ** On exit,
  71. **      a retrun code like HT_LOADED if object exists else 60; 0
  72. */
  73.  
  74. PUBLIC int HTLoadError PARAMS((
  75.         HTStream *      sink,
  76.         int             number,
  77.         CONST char *    message));
  78.  
  79. #endif
  80.  
  81.  
  82. /*
  83.  
  84.     */
  85.